package com.testerhome.cases.UI;

import com.testerhome.BaseCase;
import com.testerhome.pages.LoginPage;
import com.testerhome.pages.SelfLogger;
import org.testng.annotations.Test;

import static org.assertj.core.api.Assertions.assertThat;

/**
 * @author sunliancheng
 * @date 2023/10/22
 */
public class 用例2_新人提示 extends BaseCase {
    @Test
    public void test(){
        SelfLogger.info("----08开始执行了");
        //第1步 登录
        loginPage = new LoginPage(webDriver);
        loginPage.login( "liancheng2", "liancheng2")
                .gotoTopics();
       String pageSource = webDriver.getPageSource();
       assertThat(pageSource).contains("你还没有度过");
    }
}
